﻿using Easy.Common.Helper.JWT;
using Easy.Common.Results;
using Easy.Services.Entities;
using System.Linq.Expressions;

namespace Easy.Services.Interface
{
    public interface ICompanyService
    {
        long Add(Company company);

        APIResult Update(Company company);

        Company Get(Expression<Func<Company, bool>> expression);

        APIResult Delete(long id, TokenModelJwt tokenModel);

        List<Company> GetList();

        bool Exist(Expression<Func<Company, bool>> expression);


    }
}
